<%--
  Created by IntelliJ IDEA.
  User: szq
  Date: 2022/3/22
  Time: 21:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
         isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理</title>
    <link href="statics/css/note.css" rel="stylesheet">
    <link href="statics/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="statics/sweetalert/sweetalert2.min.css" rel="stylesheet">
    <link rel="shortcut icon" href="statics/images/blog.png" type="image/x-icon" />
    <script src="statics/js/jquery-1.11.3.js"></script>
    <script src="statics/bootstrap/js/bootstrap.js"></script>
    <script src="statics/sweetalert/sweetalert2.min.js"></script>
    <script src="statics/js/config.js"></script>
    <script src="statics/js/util.js"></script>
    <script src="statics/js/admin.js"></script>

    <!-- 配置文件 -->
    <script type="text/javascript" src="statics/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="statics/ueditor/ueditor.all.js"></script>

    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
            background: url(../statics/images/bg.gif) repeat;
        }
    </style>
</head>

<%--启动弹窗，以后放在默认页  onload="sendInfo()" --%>
<body  style="background-color: #f3f3f3">
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header" style="margin-left: 2%">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" style="font-size:25px" href="admin">云博客管理系统</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav" style="margin-left: 3%">
                <li><a href="index"><i class="glyphicon glyphicon-cloud"></i>&nbsp;返回主页</a></li>
                <li <c:if test="${menu_page=='user'}">class="active"</c:if> ><a href="admin?actionName=user"><i class="glyphicon glyphicon-user"></i>&nbsp;用户管理</a></li>
                <li <c:if test="${menu_page=='blog'}">class="active"</c:if> ><a href="admin?actionName=blog"><i class="glyphicon glyphicon-pencil"></i>&nbsp;博客管理</a></li>
                <li <c:if test="${menu_page=='type'}">class="active"</c:if> ><a href="admin?actionName=type"><i class="glyphicon glyphicon-list"></i>&nbsp;类别管理</a></li>
                <li <c:if test="${menu_page=='record'}">class="active"</c:if> ><a href="admin?actionName=record"><i class="glyphicon glyphicon-calendar"></i>&nbsp;记录查看</a>
                <li <c:if test="${menu_page=='comment'}">class="active"</c:if> ><a href="admin?actionName=comment"><i class="glyphicon glyphicon-calendar"></i>&nbsp;评论管理</a>
                <li <c:if test="${menu_page=='report'}">class="active"</c:if> ><a href="admin?actionName=report"><i class="glyphicon glyphicon-signal"></i>&nbsp;数据报表</a></li>
            </ul>
<%--            <form class="navbar-form navbar-right" role="search" action="index">--%>
<%--                <div class="form-group" >--%>
<%--                    <input type="hidden" name="actionName" value="searchTitle">--%>
<%--                    <input type="text" name="title" class="form-control" placeholder="搜索云记" value="${title}">--%>
<%--                </div>--%>
<%--                <button type="submit" class="btn btn-default" style="margin-right: 50px">查询</button>--%>
<%--            </form>--%>
        </div>
    </div>
</nav>


<c:if test="${empty changePage}">
    <jsp:include page="index.jsp"></jsp:include>
</c:if>
<c:if test="${!empty changePage}">
    <jsp:include page="${changePage}"></jsp:include>
</c:if>



</body>
</html>
